import axios from '../AxiosConfig.js'

export const getIndexVDO = () => {
    return axios({
        method: 'get',
        url: '/api/cms/article/vdo/index'
    })
}

export const createArticle = (data) => {
    return axios({
        method: 'post',
        url: '/api/cms/article',
        data: data
    })
}

export const updateArticle = (data) => {
    return axios({
        method: 'put',
        url: '/api/cms/article',
        data: data
    })
}

export const deleteArticle = (ukId) => {
    return axios({
        method: 'delete',
        url: '/api/cms/article',
        params: {"ukId": ukId}
    })
}

export const selectArticle = (ukId) => {
    return axios({
        method: 'get',
        url: '/api/cms/article',
        params: {"ukId": ukId}
    })
}


export const selectArticleDetails = (ukId) => {
    return axios({
        method: 'get',
        url: '/api/cms/article/details',
        params: {"ukId": ukId}
    })
}

export const listArticle = (catalogUkId) => {
    return axios({
        method: 'get',
        url: '/api/cms/article/list/catalog',
        params: {"catalogUkId": catalogUkId}
    })
}






